package cn.goktech.sports.modules.contentManage.controller;

import cn.goktech.sports.common.annotation.RestAnon;
import cn.goktech.sports.common.entity.R;
import cn.goktech.sports.modules.contentManage.service.ContentClassificationService;
import cn.goktech.sports.modules.sys.controller.AbstractController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 内容分类表
 *
 * @author duanyu<>
 */
@RestController
@RequestMapping("/rest/content/classification")
public class ContentClassificationController extends AbstractController {

	@Autowired
	private ContentClassificationService contentClassificationService;

	/**
	 * 获取内容分类列表
	 *
	 * @return
	 */
	@GetMapping("/list")
	@RestAnon
	public R list() {
		return contentClassificationService.list();
	}
}
